const http = uni.$u.http

const api = {
	list:'/api/miniapp/interest.php?act=list',
	fansList:'/api/miniapp/interest.php?act=fansList',
	interest:'/api/miniapp/interest.php?act=addOrDelete',
	get:'/api/miniapp/interest.php?act=get',
	interest_list:'/api/miniapp/interest.php?act=interest_list',
	
}

export const interest_list = (params, config) => http.post(api.interest_list,params, {
	custom: {
		toast: false
	},
	
	...config
})

export const list = (params, config) => http.post(api.list,params, {
	custom: {
		toast: false
	},
	
	...config
})

export const fansList = (params, config) => http.post(api.fansList,params, {
	custom: {
		toast: false
	},
	...config
})

export const get_interest = (params,config) => http.post(api.get,params, {
	custom: {
		toast: false
	},
	
	...config
})


export const interest = (params,config) => http.post(api.interest,params, {
	custom: {
		toast: false
	},
	
	...config
})

